.favorites-page {
  font-family: "Arial", sans-serif;
  max-width: 3600px;
  margin: 0 auto;
}

.favorites-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.favorites-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

/* 左侧统计信息面板 */
.stats-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stats-card {
  background-color: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stats-card h2 {
  margin-bottom: 16px;
  color: #333;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.favorites-stat-item {
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
  color: #1a2a3a;
  margin-bottom: 8px;
}

.stat-label {
  color: #666;
  font-size: 14px;
}

.recent-activity {
  background-color: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
  margin-bottom: 16px;
  color: #333;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-size: 14px;
}

.activity-type {
  color: #1a2a3a;
  font-weight: 500;
}

.activity-title {
  color: #333;
  font-size: 13px;
}

.activity-time {
  color: #666;
  font-size: 12px;
}

.no-activity {
  text-align: center;
  color: #666;
  padding: 24px;
}

/* 右侧收藏内容 */
.favorites-content {
  background-color: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 600px;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.content-header h2 {
  color: #333;
  margin: 0;
}

.favorites-tab-buttons {
  display: flex;
  gap: 8px;
}

.favorites-tab-button {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background-color: white;
  color: #666;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.favorites-tab-button:hover {
  background-color: #f8f9fa;
}

.favorites-tab-button.active {
  background-color: #1a2a3a;
  color: white;
  border-color: #1a2a3a;
}

.loading {
  text-align: center;
  padding: 48px;
  color: #666;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loading::before {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1a2a3a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error {
  text-align: center;
  padding: 24px;
  color: #e53e3e;
  background-color: #fed7d7;
  border-radius: 4px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.retry-button {
  padding: 8px 16px;
  background-color: #e53e3e;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.retry-button:hover {
  background-color: #c53030;
}

/* 收藏列表 */
.favorites-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.favorite-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.favorite-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #1a2a3a;
}

.item-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-title {
  margin: 0;
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

.item-desc {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #999;
}

.item-category {
  background-color: #e3f2fd;
  color: #1976d2;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
}

.item-tags {
  background-color: #f3e5f5;
  color: #7b1fa2;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
}

.item-arrow {
  font-size: 18px;
  color: #1a2a3a;
  flex-shrink: 0;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 48px;
  color: #666;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .favorites-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .content-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .favorites-tab-buttons {
    justify-content: center;
  }

  .favorite-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .item-meta {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .activity-item {
    text-align: center;
  }

  .favorites-tab-button {
    flex: 1;
    font-size: 12px;
    padding: 6px 12px;
  }
}
